import 'package:seedfour/generated/json/base/json_convert_content.dart';
import 'package:seedfour/app/models/org_name_entity.dart';

OrgNameEntity $OrgNameEntityFromJson(Map<String, dynamic> json) {
  final OrgNameEntity orgNameEntity = OrgNameEntity();
  final String? name = jsonConvert.convert<String>(json['name']);
  if (name != null) {
    orgNameEntity.name = name;
  }
  return orgNameEntity;
}

Map<String, dynamic> $OrgNameEntityToJson(OrgNameEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['name'] = entity.name;
  return data;
}

extension OrgNameEntityExtension on OrgNameEntity {
  OrgNameEntity copyWith({
    String? name,
  }) {
    return OrgNameEntity()
      ..name = name ?? this.name;
  }
}